<template>
	<web-view :webview-styles="webviewStyles" :src="url"></web-view>
</template>

<script>


export default {
	
	data() {
		return {
		 url:'https://mp.weixin.qq.com/s/yC6MZqoD5xz9me-bZogaBw',
	     userId:"",
		}
	},
	onLoad(e) {
		this.$utils.getUrl()
		let token = uni.getStorageSync('token');
		if(!token){
			uni.showModal({
			    title: "提示！",
			    content: "请先登录！",
			    success: function(s) {
			        if (s.confirm) {
			           uni.navigateTo({
			           	url: '/pages_login/pages/login/login/index',
			           });
			        }else if (res.cancel) {
					     
					}
			    }
			});
		}
	},
	onShareAppMessage(res) {
		let that = this
		if (res.from === 'button') {}
		return {
		  title: '请为我投上宝贵的一票！融易装@联坤家居献上超多双十一惊喜！戳文速领！',
		  imageUrl: 'https://manager.ryz1620.com/static/my/btrix.png',
		  path: '/pages_3D/pages/3D/toupiao',
		  success: function (res) {
		  }
		}  
	},
	onShareTimeline(res) {
		if (res.from === 'menu') {
		}
		return {
			title: '请为我投上宝贵的一票！融易装@联坤家居献上超多双十一惊喜！戳文速领！',
			imageUrl: 'https://manager.ryz1620.com/static/my/btrix.png',
			path: '/pages_3D/pages/3D/toupiao',
			success: function(res) {
				console.log('成功', res);
			}
		};
	},
	methods: {
		
		
	}
}
</script>

<style lang="scss" scoped>


</style>